<html>
    <head>
        <title>更新页面</title>
        <h1>更新</h1>
        @include('shared._errors')
    </head>
    <body>
        <form action="{{route('users.update',$user->id)}}" method="post">
            {{method_field('PATCH')}}
            {{csrf_field()}}
            <label for="name">名称</label>
            <input type="text" name="name" value="{{$user->name}}">

            <lable for="email">邮箱</lable>
            <input type="text" name="email" value="{{$user->email}}" disabled>

            <lable for="password">密码</lable>
            <input type="password" name="password">

            <label for="password_confirmation">确认密码：</label>
            <input type="password" name="password_confirmation">

            <button type="submit">提交</button>
        </form>
    </body>
</html>